package query;

import java.io.IOException;
import java.io.Serializable;
import java.util.Vector;

import model.Vertrag;
import server.MySqlConnector;

public class VertragSuchenQuery extends AbstractQuery implements Serializable{
	private static final long serialVersionUID = -588911383972619474L;

	public void doAction() {
		Vector<Vertrag> vertrag;
		vertrag = MySqlConnector.getVertraege();
		
		try {
			
			serverOutputStream.writeObject(vertrag);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
